package com.luban.producer.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * 需要视频资料或咨询课程的同学可以添加若曦老师的QQ:2746251334
 */

@Mapper
public interface TestMapper {

    @Insert(
            "insert into luban_product values(#{id},#{name})"
    )
     boolean insert(Map<String,Object> map);

    @Select("select count(1) from luban_product where product_id = #{id}")
    int selectCount(@Param("id") String id);


}
